var config = {
	host: '192.168.1.2',//服务器ip
	port_jt808: 3100,
    port_0183: 2702,
    port_self:1401,
    port_people:2703,

    redis : {
        host: '192.168.1.4',
        port: 6379,
        options: {
            connect_timeout: 60000,
            retry_strategy: function (options) {
                if (options.error.code === 'ECONNREFUSED') {
                    // End reconnecting on a specific error and flush all commands with a individual error
                    return new Error('The server refused the connection');
                }
                if (options.total_retry_time > 1000 * 60 * 60) {
                    // End reconnecting after a specific timeout and flush all commands with a individual error
                    return new Error('Retry time exhausted');
                }
                if (options.times_connected > 10) {
                    // End reconnecting with built in error
                    return undefined;
                }
                // reconnect after
                return Math.max(options.attempt * 100, 3000);
            }
        }
    },

    mysql : {
        host : '192.168.1.4',
        user : 'beidou',
        password : 'nicg',
        database:'gwc',
        port : 3306
    },
    socketio : {
        port : 8001
    }
};

module.exports = config;